#import "VirtuousJourneyCell.h"


@implementation VirtuousJourneyCell

- (instancetype)initWithFrame:(CGRect)frame {
	self = [super initWithFrame:frame];
	if (self) {
		//self.contentView.backgroundColor = UIColor.whiteColor;
	}
	return self;
}

- (void)setGlimpseKaleidoscopeFlourish:(VirtuousJourneyModel *)glimpseKaleidoscopeFlourish {
	_glimpseKaleidoscopeFlourish = glimpseKaleidoscopeFlourish;

	//: 配置cell的UI
    [self.yonderVividEssenceImageView sd_setImageWithURL:[NSURL URLWithString:glimpseKaleidoscopeFlourish.quenchNostalgiaLeapfrog.stringValue] placeholderImage:nil];



}
- (UIImageView *)luminaryWispImageView {
	if (!_luminaryWispImageView) {
	
        _luminaryWispImageView = [[UIImageView alloc] initWithFrame:CGRectZero];
        _luminaryWispImageView.contentMode = UIViewContentModeScaleAspectFill;
        _luminaryWispImageView.clipsToBounds = YES;
        _luminaryWispImageView.layer.cornerRadius = 10;
        _luminaryWispImageView.layer.masksToBounds = YES;
        _luminaryWispImageView.size = CGSizeMake(132, 106);
        _luminaryWispImageView.left = 48;
        _luminaryWispImageView.top = 9;
        UIImage *xenophileNightfall = [UIImage imageNamed:@"images/image_3.png"];
        if (xenophileNightfall) {
	        _luminaryWispImageView.image = xenophileNightfall;
        }
	}
	return _luminaryWispImageView;
}

//: courageousEuphoria 的点击事件
- (void)action_4 {}

- (void)gritSubViews {

    //: 描述_0
    self.yonderVividEssenceImageView = [[UIImageView alloc] init];
    self.yonderVividEssenceImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.yonderVividEssenceImageView.clipsToBounds = YES;
    self.yonderVividEssenceImageView.layer.cornerRadius = 11;
    self.yonderVividEssenceImageView.layer.masksToBounds = YES;
    UIImage *illuminateMandala = [UIImage imageNamed:@"images/image_0.png"];
    if (illuminateMandala) {
	    self.yonderVividEssenceImageView.image = illuminateMandala;
    }
    [self.contentView addSubview:self.yonderVividEssenceImageView];
	[self.yonderVividEssenceImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(129);
		make.height.mas_equalTo(112);
		make.top.equalTo(@(13));
		make.bottom.equalTo(@(15));
	}];


    //: 描述_1
    UITextField *imprintPulse = [[UITextField alloc] initWithFrame:CGRectZero];
    self.gratitudeGlimmerTextField = imprintPulse;
    [self.contentView addSubview:imprintPulse];
	[self.gratitudeGlimmerTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(30);
		make.height.mas_equalTo(137);
	}];


    //: 描述_2
    self.quenchJuggleLabel = [[UILabel alloc] init];
    self.quenchJuggleLabel.text = @"label_2";
    self.quenchJuggleLabel.font = [UIFont systemFontOfSize:17 weight:UIFontWeightBold];
    self.quenchJuggleLabel.textColor = [UIColor colorWithRed:183/255.0 green:39/255.0 blue:116/255.0 alpha:0.6];
    self.quenchJuggleLabel.textAlignment = NSTextAlignmentCenter;
    self.quenchJuggleLabel.numberOfLines = 0;
    [self.contentView addSubview:self.quenchJuggleLabel];
	[self.quenchJuggleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(40);
		make.height.mas_equalTo(155);
	}];

	//: 描述_3
	[self.contentView addSubview:self.luminaryWispImageView];


    //: 描述_4
    UIButton *courageousEuphoria = [[UIButton alloc] init];
    UIImage *journeyLuminaryVelvet = [UIImage imageNamed:@"images/icon_4.png"];
    if (journeyLuminaryVelvet) {
	    [courageousEuphoria setImage:journeyLuminaryVelvet forState:UIControlStateNormal];
    }
    [courageousEuphoria setTitle:@"button_4" forState:UIControlStateNormal];
    [courageousEuphoria setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [courageousEuphoria setTitleColor:[UIColor colorWithRed:69/255.0 green:173/255.0 blue:125/255.0 alpha:0.8] forState:UIControlStateNormal];
    [courageousEuphoria setTitleColor:[UIColor colorWithRed:17/255.0 green:39/255.0 blue:161/255.0 alpha:0.6] forState:UIControlStateSelected];
    [courageousEuphoria addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    self.pirateButton = courageousEuphoria;
    [self.contentView addSubview:courageousEuphoria];
	[self.pirateButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(137);
		make.height.mas_equalTo(114);
		make.bottom.equalTo(@(13));
	}];
}


@end
